package loja.view.editor.components.frame;

import loja.model.entity.produto.Grupo;
import loja.model.handler.HandlerViewEntity;
import loja.view.editor.components.panel.EntityPanelEditor;
import loja.view.editor.components.panel.GrupoPanelEditor;
import loja.view.editor.components.tablemodel.EntityTableModel;
import loja.view.editor.components.tablemodel.GrupoTableModel;

public class GrupoFrameEditor extends EntityFrameEditor<Grupo, Integer> {

	private static final long serialVersionUID = 1L;

	public GrupoFrameEditor(HandlerViewEntity<Grupo, Integer> handlerViewEntity) {
		super(handlerViewEntity);
		labelTitle = "Grupos";

	}

	@Override
	protected EntityPanelEditor<Grupo, Integer> createEntityPanelEditor() {
		return new GrupoPanelEditor(handlerViewEntity);
	}

	@Override
	protected EntityTableModel<Grupo> createTableModel() {
		return new GrupoTableModel();
	}

}
